package org.droid.campus.admin.model;

import java.sql.PreparedStatement;
import java.sql.ResultSet;

import org.droid.campus.common.DBAction;

public class UserModel extends DBAction{
	public boolean checkUser(String userName,String pwd) throws Exception{
		boolean flag = false;
		String sql = "select * from m_user where base_name = ? and base_pwd =?";
		PreparedStatement  s = conn.prepareStatement(sql);
		s.setString(1, userName);
		s.setString(2,pwd);
		ResultSet rs = s.executeQuery();
		if(rs.next()){
			flag = true;
		}
		return flag;
	}
}
